import { useSelector } from 'react-redux'
import { StateType } from '../../../store/types'
import { PageInfoType } from '../../../store/page-info-reducer/types'

export default function useGetPageInfo() {
  const { title, desc, js, css } = useSelector<StateType>(state => state.pageInfo) as PageInfoType

  return { title, desc, js, css }
}
